package com.emn.fil.automaticdiscover.ihm.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.emn.fil.automaticdiscover.ihm.dialogs.AdvancedCFGDialog;

public class BtnCancelDialAdvCfg implements ActionListener {

	AdvancedCFGDialog my_dialog;
	public void actionPerformed(ActionEvent e) {
		this.my_dialog.closeDialAdvCFG();
		this.my_dialog.getInfos();
		clearTextBox();
	}

	public void clearTextBox() {
		this.my_dialog.getTxtbox_mac().setText("");
		this.my_dialog.getTxtbox_unix().setText("");
		this.my_dialog.getTxtbox_win().setText("");
	}
	
	public BtnCancelDialAdvCfg(AdvancedCFGDialog my_dialog) {
		this.my_dialog = my_dialog;
	}

}
